package net.news.action;

import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import net.news.entity.NewsType;
import net.news.service.NewsTypeService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;

import com.livesky.framework.miniapp.ActionSupport;

/**
* 项目名称：cmunews3084<br>
* 类名称：NewsTypeAction <br>  
* 类描述：  TODO(请输入类的描述) <br>
* 创建人：charles   
* 创建时间：2011-4-12 下午11:26:13 <br> 
* 修改人：   
* 修改时间：                  <br>  
* 修改备注：   
* @version V1.0
*/
@Controller
public class NewsTypeAction extends ActionSupport{
	private static Logger looger = LoggerFactory.getLogger(NewsTypeAction.class);
	private List<NewsType> newsType;
	@Resource
	private NewsTypeService newsTypeService;
	
	/**
	 * @return
	 */
	public String index(){
		newsType=newsTypeService.getNewstype();
		return SUCCESS;
	}
	
	/**
	 * @return the newsType
	 */
	public List<NewsType> getNewsType() {
		return newsType;
	}

	/**
	 * @param newsType the newsType to set
	 */
	public void setNewsType(List<NewsType> newsType) {
		this.newsType = newsType;
	}

	
}
